//
//  ZMultiChosePanelCell.h
//  WeClubs
//
//  Created by Zed Link on 28/4/2017.
//  Copyright © 2017 Zed. All rights reserved.
//
//  选择面板_列表项

#import "ZTableViewCell.h"
#import "ZMultiChoseModel.h"
#import "ZCollectionViewCell.h"
#import "ZDepartmentModel.h"

typedef enum : NSUInteger {
    ZMultiChoseStateNormal = 0,
    ZMultiChoseStateSelected = 1,
} ZMultiChoseState;


@class ZMultiChosePanelCell;
@protocol ZMultiChosePanelCellDelegate <NSObject>

@optional
- (void)multiChosePanelCell:(ZMultiChosePanelCell *)cell didSelectedItem:(ZMultiChoseState)itemState AtIndex:(NSUInteger)index;

- (void)multiChosePanelCell:(ZMultiChosePanelCell *)cell didSelectedPlusItem:(UIButton *)plusItem;

@end

@interface ZMultiChosePanelCell : ZTableViewCell

/** 数据源 */
@property (strong, nonatomic) NSArray <ZMultiChoseModel *> *itemModels;

/** 代理 */
@property (weak, nonatomic) id <ZMultiChosePanelCellDelegate> delegate;

@end



@interface ZMultiChosePanelItem : ZCollectionViewCell

@property (weak, nonatomic) UIButton *button;

/** 状态 */
@property (assign, nonatomic) ZMultiChoseState state;

- (void)setTitle:(NSString *)title andFontSize:(CGFloat)fontSize;

@end
